package com.platform.dao;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.platform.base.Tree;
import com.platform.dto.RoleRight;
import com.platform.exception.BizException;
import com.platform.base.mvc.IBaseMapper;
/**
 * 
 * <p> Title: Jsqx Mapper</p>
 * <p> Description: 角色权限表 </p>
 * <p> Copyright: Copyright (c) 2019 </p>
 * <p> Company: </p>
 *
 * @author wys
 * @version 1.0
 */
@Mapper
public interface RoleRightDAO<T> extends IBaseMapper<T> {
	public Integer insertBatch(List<RoleRight> roleRight) throws BizException;
	public Integer deleteByJsId(Long jsId) throws BizException;
	public Integer deleteByRightId(Long rightId) throws BizException;
	
	/* ########################### 角色鉴权部分查询菜单资源 ###########################*/
	public List<Tree> authorizationModular(Map<?,?> map)throws BizException;
	public List<Tree> queryRightByModular(Map<String,Object> map)throws BizException;
}
